import htmlPlugin from 'vite-plugin-html'

export default function createHtml(env, isBuild) {
  // const { VITE_APP_TITLE } = env
  const html = htmlPlugin({
    inject: {
      injectData: {
        title: 'vite-vue3',
        copyrightScript: ''
      }
    },
    minify: isBuild
  })
  return html
}
